using DAL;
using Model;

namespace BLL {
    public class OrderBLL {
        private OrderDAL _orderDAL = OrderDAL.GetInstance();
        private OrderBLL(){}
        private static OrderBLL _instance;

        public static OrderBLL Instance {
            get {
                if (_instance == null) {
                    _instance = new OrderBLL();
                }
                return _instance;
            }
        }

        public int AddOrder(Order order) {
            return _orderDAL.InsertOrder(order);
        }

        public void Update(Order order) {
            _orderDAL.Update(order);
        }
    }
}